package com.qingzhou.web.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.qingzhou.web.repository.entity.CollectEntity;
import com.qingzhou.web.service.impl.params.request.*;
import com.qingzhou.web.service.impl.params.vo.CollectVo;
import io.swagger.annotations.ApiOperation;
import lombok.SneakyThrows;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;

import java.io.File;

/**
 *
 * @author 李海
 */
public interface CollectService extends IService<CollectEntity> {
    int add(CollectAddForm form);
    int delete(CollectDeleteForm form);
    Page<CollectVo> page(Page<CollectEntity> page, SubTablePageForm form);
    CollectVo detail(CollectDetailForm form);
    int edit(CollectEditForm form);
    int forceEdit(CollectForceEditForm form);

    /**
     * 核实
     */
    int done(CollectDoneForm form);
    int stop(CollectStopForm form);

    int pushToKhSys(SamplePushForm form);

    void uploadFile(CollectUploadFileForm form);

    File downloadFile(CollectDownloadFileForm form);
}
